//package me.zhengjie.modules.monitor.config;
//
//import lombok.extern.slf4j.Slf4j;
//import me.zhengjie.modules.monitor.service.VisitsService;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.stereotype.Component;
//
///**
// * 初始化站点统计
// * @author Zheng Jie
// */
//@Slf4j
//@Component
//public class VisitsInitialization implements ApplicationRunner {
//
//    private final VisitsService visitsService;
//
//    public VisitsInitialization(VisitsService visitsService) {
//        this.visitsService = visitsService;
//    }
//
//    @Override
//    public void run(ApplicationArguments args){
//        visitsService.save();
//    }
//}